package com.example.perpetualcalendar.domain.entity;

import com.google.gson.annotations.SerializedName;

public class Calendar {

    /**
     * reason : Success
     * result : {"data":{"holiday":"元旦","avoid":"伐木.纳畜.破土.安葬.开生坟.嫁娶.开市.动土.交易.作梁.","animalsYear":"兔","desc":"2012年1月1日至3日放假调休，共3天，2011年12月31日（星期六）上班","weekday":"星期日","suit":"祭祀.开光.理发.整手足甲.安床.作灶.扫舍.教牛马.","lunarYear":"辛卯年","lunar":"腊月初八","year-month":"2012-1","date":"2012-1-1"}}
     * error_code : 0
     */

    private String reason;
    /**
     * data : {"holiday":"元旦","avoid":"伐木.纳畜.破土.安葬.开生坟.嫁娶.开市.动土.交易.作梁.","animalsYear":"兔","desc":"2012年1月1日至3日放假调休，共3天，2011年12月31日（星期六）上班","weekday":"星期日","suit":"祭祀.开光.理发.整手足甲.安床.作灶.扫舍.教牛马.","lunarYear":"辛卯年","lunar":"腊月初八","year-month":"2012-1","date":"2012-1-1"}
     */

    private ResultDTO result;
    private int error_code;

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }

    public ResultDTO getResult() {
        return result;
    }

    public void setResult(ResultDTO result) {
        this.result = result;
    }

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public static class ResultDTO {
        /**
         * holiday : 元旦
         * avoid : 伐木.纳畜.破土.安葬.开生坟.嫁娶.开市.动土.交易.作梁.
         * animalsYear : 兔
         * desc : 2012年1月1日至3日放假调休，共3天，2011年12月31日（星期六）上班
         * weekday : 星期日
         * suit : 祭祀.开光.理发.整手足甲.安床.作灶.扫舍.教牛马.
         * lunarYear : 辛卯年
         * lunar : 腊月初八
         * year-month : 2012-1
         * date : 2012-1-1
         */

        private DataDTO data;

        public DataDTO getData() {
            return data;
        }

        public void setData(DataDTO data) {
            this.data = data;
        }

        public static class DataDTO {
            private String holiday;
            private String avoid;
            private String animalsYear;
            private String desc;
            private String weekday;
            private String suit;
            private String lunarYear;
            private String lunar;
            @SerializedName("year-month")
            private String yearmonth;
            private String date;

            public String getHoliday() {
                return holiday;
            }

            public void setHoliday(String holiday) {
                this.holiday = holiday;
            }

            public String getAvoid() {
                return avoid;
            }

            public void setAvoid(String avoid) {
                this.avoid = avoid;
            }

            public String getAnimalsYear() {
                return animalsYear;
            }

            public void setAnimalsYear(String animalsYear) {
                this.animalsYear = animalsYear;
            }

            public String getDesc() {
                return desc;
            }

            public void setDesc(String desc) {
                this.desc = desc;
            }

            public String getWeekday() {
                return weekday;
            }

            public void setWeekday(String weekday) {
                this.weekday = weekday;
            }

            public String getSuit() {
                return suit;
            }

            public void setSuit(String suit) {
                this.suit = suit;
            }

            public String getLunarYear() {
                return lunarYear;
            }

            public void setLunarYear(String lunarYear) {
                this.lunarYear = lunarYear;
            }

            public String getLunar() {
                return lunar;
            }

            public void setLunar(String lunar) {
                this.lunar = lunar;
            }

            public String getYearmonth() {
                return yearmonth;
            }

            public void setYearmonth(String yearmonth) {
                this.yearmonth = yearmonth;
            }

            public String getDate() {
                return date;
            }

            public void setDate(String date) {
                this.date = date;
            }
        }
    }
}
